package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("log")
public class LogController {
    @Autowired
    private LogService logService;
    @RequestMapping("selectLog")
    @ResponseBody
    public Map selectLog(String logContent,String logType,int page,int limit) {
        return logService.selectLog(logContent,logType,page,limit);
    }

    @RequestMapping("selectType")
    @ResponseBody
    public List<String> selectType() {
        return logService.selectType();
    }
}
